﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewsModify.ascx.cs" Inherits="BackEnd_NewsModify" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<table class="toolbar" cellspacing="1" cellpadding="1">
    <tr>
        <td style="font-weight: bold" class="toolbar">
        <b>
            <%=_Url %>
        </b>
        </td>
    </tr>
    <tr>
        <td align="center" colspan="2">
            <asp:Label ID="lbMessage" runat="server" Width="100%" ForeColor="Red" Font-Bold="True"></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="Modify">
            <table>
                <tr>
                    <td class="holder">
                        Tên
                    </td>
                    <td class="holder2">
                        <asp:TextBox ID="txtTitle" runat="server" CssClass="txtEL" 
                             TextMode="MultiLine" Width="600px" Height="30px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td style="text-align: left">
                        Hình ảnh :
                        <br />
                        <table>
                            <tr>
                                <td class="holder" style="height: 110px; width: 100px">
                                    <table>
                                        <tr>
                                            <td align="left">
                                                Hình ảnh cũ
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <img src="<%=nameImage%>" alt="chưa có" height="110px" width="100px" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td>
                                    <table>
                                        <tr>
                                            <td align="left">
                                                Hình ảnh mới
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Image ID="imageUpload" alt="chưa có" Height="110px" Width="100px"  runat="server" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td class="holder2">
                        <input id="txtImage" type="text" width="500px" readonly="readonly" runat="server" />
                        <%--<input id="bt1" type="button" value="Image" onclick="OpenWindowUploadFile('FileManagement/File.aspx?id=ctl11_NewsModify1_txtImage&idimg=ctl11_NewsModify1_imageUpload','window','width = 630px, height =520px');" />--%>
                        <input id="bt1" type="button" value="Image" onclick="<%=this.onclick %>" />
                    </td>
                </tr>
                <tr>
                    <td class="holder">
                        Tóm Tắt
                    </td>
                    <td class="holder2">
                        <asp:TextBox ID="txtSummary" runat="server" CssClass="txtEL" 
                             TextMode="MultiLine" Width="600px" Height="100px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="holder">
                        Diễn giải
                    </td>
                    <td class="holder2">
                        <FCKeditorV2:FCKeditor ID="txtContent" ToolbarStartExpanded="false" runat="server"
                            BasePath="~/fckeditor/" Width="605px" Height="500px">
                        </FCKeditorV2:FCKeditor>
                    </td>
                </tr>
                <tr>
                    <td class="holder">
                        Tin tức
                    </td>
                    <td class="holder2">
                        <asp:TextBox ID="txtNews" runat="server" CssClass="txtEL" 
                             TextMode="MultiLine" Width="600px" Height="30px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="holder">
                        Parent
                    </td>
                    <td class="holder2">
                        <asp:TextBox ID="txtParent" runat="server" CssClass="txtEL" 
                             TextMode="MultiLine" Width="600px" Height="30px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="toolbar btnLuu" colspan="2">
                        <img src="Images/edit.gif" width="16px" height="16px" />
                        <asp:LinkButton ID="cmdLuu" BorderColor="red" runat="server" Text="Lưu" ValidationGroup="LienHeGroup"
                            OnClick="cmdLuu_Click"></asp:LinkButton>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>